import { fetchData } from "../api";
import { UserInfoResult } from "@/lib/models/UserInfoResult";

export async function getUserInfo(): Promise<UserInfoResult> {

	const result=await fetchData('/user/info', []);
	return new UserInfoResult(result);
}
